import request from "@/utils/request"
import { AddParams, ReqFindSchoolParams } from "@/views/hospital/types"

// 查询学校
export function reqFindSupermarket(params: Partial<ReqFindSchoolParams>) {
    return request({
        url: '/findHospital',
        method: 'post',
        data: params,
    })
}
// 添加商超
export function reqaddSupermarket(params: Partial<AddParams>) {
    return request({
        url: '/addHospital',
        method: 'post',
        data: params,
    })
}
// 通过id查询
export function reqfindSupermarketById(params: { id: string }) {
    return request({
        url: '/findHospitalById',
        method: 'post',
        data: params,
    })
}
// 修改商超
export function reqModifySupermarket(params: Partial<AddParams>) {
    return request({
        url: '/modifyHospital',
        method: 'post',
        data: params,
    })
}
// 删除商超
export function reqRemoveSupermarket(params: { id: string }) {
    return request({
        url: '/removeHospital',
        method: 'post',
        data: params,
    })
}